package com.training.bt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.training.bt.entity.FriendRelation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FriendRelationMapper extends BaseMapper<FriendRelation> {
    List<Long> findFriendIdsByUserId(Long userId);
    boolean existsByUserIdAndFriendId(Long userId, Long friendId);
}